package com.jxd.project.menu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jxd.project.menu.dao.IRoleDao;
import com.jxd.project.menu.model.Role;
import com.jxd.project.menu.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName RoleServiceImpl
 * @Description TODO
 * @Author 刘成
 * @Date 2025/10/11 9:54
 * @Version 1.0
 */
@Service
public class RoleServiceImpl extends ServiceImpl<IRoleDao, Role> implements IRoleService {
    @Autowired
    private IRoleDao roleDao;

    @Override
    public List<Role> getRoleWithMenuId(int menuId){
        return roleDao.selectWithMenuId(menuId);
    }
}
